package com.erp.sys.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.erp.sys.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {


    // 根据uid 查 rid
    @Select("select rid from sys_role_user where uid = #{uid} ")
    public List<Integer> getRoleByUid(Integer uid);

}
